﻿using DA.Model.Common;

namespace DA.Core.Plcs
{
    public interface IBasePlc
    {
        void Init();
        void Connect(string ip,int port);
        void Disconnect();
        Task<object> ReadAsync(string address, DaDataType dataType, ushort length = 1);
        Task<bool> WriteAsync(string address, DaDataType dataType, object value);
    }
}
